#pragma once
#include "afxcmn.h"
#include "RealObject/ListProduct.h"

// CListProductDlg dialog

class CListProductDlg : public CDialog
{
	DECLARE_DYNAMIC(CListProductDlg)

public:
	CListProductDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CListProductDlg();

// Dialog Data
	enum { IDD = IDD_DIA_LIST_PRODUCT };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	CListCtrl m_ctrList;
public:
	void initList();
	afx_msg void OnNMDblclkListProduct(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnBnClose();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point) ;
	void OnMouseMove(UINT nFlags, CPoint point);
	
public:
	CListProduct* m_pProductList;
	vector<CString> m_vtCodeList;
};
